package com.sunwayworld.basemodule.coredata.judgmentbasis.resource.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.sunwayworld.basemodule.coredata.judgmentbasis.resource.LimsJudgmentBasisTmAnalyteResource;
import com.sunwayworld.basemodule.coredata.judgmentbasis.service.LimsJudgmentBasisTmAnalyteService;
import com.sunwayworld.framework.spring.annotation.GikamBean;
import com.sunwayworld.framework.log.annotation.Log;
import com.sunwayworld.framework.log.annotation.LogModule;
import com.sunwayworld.framework.log.annotation.LogType;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;

@LogModule("判定依据方法分析项")
@RestController
@GikamBean
public class LimsJudgmentBasisTmAnalyteResourceImpl implements LimsJudgmentBasisTmAnalyteResource {

    @Autowired
    private LimsJudgmentBasisTmAnalyteService limsJudgmentBasisTmAnalyteService;

    @Override
    public LimsJudgmentBasisTmAnalyteService getService() {
        return limsJudgmentBasisTmAnalyteService;
    }

    @Log(value = "新增判定依据方法分析项", type = LogType.INSERT)
    @Override
    @RequestMapping(method = RequestMethod.POST)
    public Long insert(RestJsonWrapperBean wrapper) {
        return getService().insert(wrapper);
    }

}
